package com.wejoy.video.middle.station.data.service.system;

import com.wejoy.video.middle.station.data.domain.system.EvsUser;

import java.util.Date;
import java.util.List;

/**
 * evs用户同步
 *
 * @author admin
 * @date 2024年06月29日 17:04:26
 */
public interface IEvsUserService {
    /**
     * 保存或更新
     * @param req
     */
    void save(EvsUser req, String operator);

    /**
     * 插入
     *
     * @param evsUser evsUser
     * @return int
     */
    int insertSelective(EvsUser evsUser);

    /**
     * 主键更新
     *
     * @param evsUser evsUser
     * @return int
     */
    int updateSelectiveById(EvsUser evsUser);

    int updateSelectiveByPhone(EvsUser evsUser);

    int updateRoleSelectiveById(Long userId, String roleId);

    /**
     * 数量
     *
     * @param evsUser evsUser
     * @return int
     */
    int getCount(EvsUser evsUser);

    /**
     * 主键查询
     *
     * @param id id
     * @return EvsUser
     */
    EvsUser getOneById(Long id);

    EvsUser getOne(EvsUser evsUser);

    /**
     * 多条
     *
     * @param evsUser evsUser
     * @return List<EvsUser>
     */
    List<EvsUser> getList(EvsUser evsUser);

    /**
     * 分页
     *
     * @param evsUser evsUser
     * @return List<EvsUser>
     */
    List<EvsUser> getPageList(EvsUser evsUser);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);

    void deleteByTime(Date date);
}
